const mongoose = require("mongoose");

const Schema = mongoose.Schema

const userSchema = new Schema({
    account: {
        type: String,
        unique: true
    },
    userId: {
        type: String
    },
    isAdmin: {
        type: Boolean,
        default: false
    },
    likes: {
        type: Array,
        default: []
    }
}, {
    collection: 'user',
    versionKey: false
})

module.exports = mongoose.model('user', userSchema)